//
//  WCNavigationController.m
//  WeChat
//
//  Created by lin on 15/7/16.
//  Copyright (c) 2015年 lin. All rights reserved.
//

#import "WCNavigationController.h"

@interface WCNavigationController ()

@end

@implementation WCNavigationController

+(void)initialize{
    [self setNavTheme];
}

+(void)setNavTheme{
    UINavigationBar *navBar = [UINavigationBar appearance];
    //高度不会拉伸，宽度会拉伸
    [navBar setBackgroundImage:[UIImage imageNamed:@"topbarbg_ios7"] forBarMetrics:UIBarMetricsDefault];
    
    NSMutableDictionary *att = [NSMutableDictionary dictionary];
    att[NSForegroundColorAttributeName] =[UIColor whiteColor];
    att[NSFontAttributeName]= [UIFont systemFontOfSize:20];
    [navBar setTitleTextAttributes:att];
    

    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
